<?php include_once 'top.php' ;?>
<script>
function checkform(){
	 if($("select[name='ctype'] option:selected").val()==''){
			alert('Please select search types!');
			return false;
	 }
	 if($("input[name='akey']").val()==''){
			alert('Please add write key word!');
			return false;
	 }
}
function checkformact(){
	$('#index-form').attr("action",$("select[name='ctype'] option:selected").val());
}
</script>
<div class="centerbg">
	<div class="cx" >
     <form style="background:url(images/cxcenter.jpg) repeat-x" action="" method="post" onsubmit="return checkform()" name="index-form" id="index-form">
    	<div class="fl"><img src="images/cxleft.jpg" /></div>
        <div class="fl"><input class="cxcenter" name="akey" type="text" /></div>
        <div class="fl xz">
         <select name="ctype" onchange="checkformact()">
          <option value="">Please select</option>
          <option value="Server.php">Server</option>
          <option value="Employee.php">Employee</option>
          <option value="Member.php">Member</option>
          <option value="Product.php">Product</option>
          <option value="Account.php">Account</option>
         </select>
        </div>
        <div class="fr"><input class="cxbutton" name="" type="submit" value="" /></div>
        <div class="clear"></div>
     </form>
    </div>
    <div class="bt">
    	<div class="allbody">
        	<div class="img"><a href="javascript:show_window('employee','')"><img src="images/ADDEM.jpg" /></a></div>
        	<div class="img"><a href="javascript:show_window('member','')"><img src="images/ADDME.jpg" /></a></div>
        	<div class="img"><a href="javascript:show_window('product','')"><img src="images/ADDPR.jpg" /></a></div>
        	<div class="img"><a href="javascript:show_window('account','')"><img src="images/ADDAC.jpg" /></a></div>
        	<div class="img"><a href="employee.php"><img src="images/EDITEM.jpg" /></a></div>
        	<div class="img"><a href="member.php"><img src="images/EDITME.jpg" /></a></div>
        	<div class="img"><a href="product.php"><img src="images/EDITPR.jpg" /></a></div>
        	<div class="img"><a href="account.php"><img src="images/EDITAC.jpg" /></a></div>
        </div>
    </div>
</div>
<?php include_once 'footer.php' ;?>